package com.shuyu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tbl_message_history")
@ApiModel(description = "用户留言历史")
public class MessageHistory implements Serializable {
    private static final long serialVersionUID = 8912959354350098462L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "消息ID")
    private Integer messageId;
    @ApiModelProperty(value = "留言内容")
    private String message;
    @ApiModelProperty(value = "留言时间")
    private Date createTime;
    @ApiModelProperty(value = "消息类型0用户提交1平台提交")
    private Integer messageType;
    @ApiModelProperty(value = "消息创建人员ID")
    private Long createBy;
    @ApiModelProperty(value = "回复评分")
    private Integer score;
    @ApiModelProperty(value = "得分理由")
    private String scoreReason;

    public MessageHistory() {
    }

    public MessageHistory(Integer messageId, String message, Date createTime, Integer messageType, Long createBy) {
        this.messageId = messageId;
        this.message = message;
        this.createTime = createTime;
        this.messageType = messageType;
        this.createBy = createBy;
    }
}
